package com.ruoyi.web.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 社区对象 community
 *
 * @author jiwei
 * @date 2024-05-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("community")
public class Community {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Excel(name = "ID")
    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    /**
     * 社区名
     */
    @Excel(name = "社区名")
    private String name;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String pic;

    /**
     * 分类id
     */
    @Excel(name = "分类id")
    private Long categoryId;

    /**
     * 简介
     */
    @Excel(name = "简介")
    private String remark;

    /**
     * 成员数量
     */
    @Excel(name = "成员数量")
    private Long joinNum;

    /**
     * 帖子数量
     */
    @Excel(name = "帖子数量")
    private Long postNum;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Long status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;
    /**
     * 更新者
     */
    @Excel(name = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;


}